home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
726-750
/
727
/
2view
/
source
/
2view.h
< prev
next >
Wrap
Text File
|
1995-03-18
|
2KB
|
87 lines
/* Header file for 2View.c */
enum ScreenWidths {low,high,superhigh,unknown_w};
typedef enum ScreenWidths ScreenWidths;
enum ScreenHeights {nolace,lace,prodlace,unknown_h};
typedef enum ScreenHeights ScreenHeights;
enum ScreenTypes {ham,ehb,unknown_t};
typedef enum ScreenTypes ScreenTypes;
enum ButtonTypes {none=0,select,menu};
typedef enum ButtonTypes ButtonTypes;
typedef struct CAMG
{
ULONG viewmodes;
} CAMG;
typedef struct CRNG
{
WORD pad1;
WORD rate;
WORD active;
UBYTE low,high;
} CRNG;
typedef struct DRNG
{
UBYTE min;
UBYTE max;
SHORT rate;
SHORT flags;
UBYTE ntrue;
UBYTE nregs;
} DRNG;
typedef struct DIndex
{
UBYTE cell;
UBYTE index;
} DIndex;
#define NORMAL_MODE 0
#define SHAM 1
#define MACROPAINT 2
#define MIN(x,y) ((x)<(y)) ? (x) : (y)
/* Prototypes for functions defined in 2View.c */
void _main(void);
BOOL containsWildcards(char *filename);
void GetFilename(char *picFilename,char **filenames,struct AnchorPath *anchor,
BYTE *status);
void openResources(LONG *args,BOOL *playList,char ***filenames);
void ReadAndDisplay(char *filename,struct IFFHandle *iff);
void setScreenColors(struct Screen *scr, UBYTE *colorMap, UBYTE depth,
UWORD *destColorMap,UBYTE *colors);
void ReadBodyIntoBitmap(struct BitMap *bm,
UBYTE *buffer,
ULONG bufferSize);
void __regargs GetALine(BYTE *src,
UBYTE *dest,
ULONG *pos,
UWORD width,
unsigned char Compression);
void getBMHD(struct BitMapHeader *bmhd);
void ParseArgs(ULONG *args);
ButtonTypes checkButton(void);
void printError(char *error1,char *error2);
void cleanup();
BOOL dumpRastPort(struct RastPort *rp,struct ViewPort *vp);
void cycleColors(UBYTE *cycleTable,UWORD *colorTable,UBYTE length,UBYTE numColors);
UBYTE interpretCRNG(UBYTE *cycleTable,CRNG *crng,UBYTE *rate);
UBYTE interpretDRNG(UBYTE *cycleTable,DRNG *drng,UBYTE *rate);
void setupSHAM(struct Screen *scr,UWORD *sham);
void setupDynHires(struct Screen *scr,UWORD *colorBuf);
void toggleCycling(void);